/**
 * 
 */
package com.demo.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.demo.common.page.PagedResult;
import com.demo.model.SysUser;
import com.demo.service.UserService;

/**
 * UserController
 * Description:	 
 * @author Zhuqingcheng
 * @date 2017年11月27日 上午9:28:28
 */
@Controller
@RequestMapping("user")
public class UserController extends BaseController{
	@Autowired
	private UserService userService;
	
	@RequestMapping("list")
	public String list(@RequestParam("p") Integer pageNumber, Integer pageSize ,Model model) {
		PagedResult<SysUser> userList = userService.findUserList(pageNumber,pageSize);
		model.addAttribute("userList",userList);
		return "user/userList";
	}

}
